<!DOCTYPE html>
<html>
<head>
<title>团队信息</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn" style="height:34px;">
			<div style="float: left">
				<select style="height: 34px;" id="selectUserGzhList" v-model="q.gzhCode">

				</select>
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.teamName" @keyup.enter="query" placeholder="团队名称">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("sys:bteaminfo:update")>
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("sys:bteaminfo:delete")>
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
	</div>
	
	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
			   	<div class="col-sm-2 control-label">团队名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="bteaminfo.teamName" placeholder="团队名称"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">创建人ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="bteaminfo.userId" placeholder="创建人ID"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">公众号标识</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="bteaminfo.gzhCode" placeholder="公众号标识"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">展示状态</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" readonly="readonly" v-model="bteaminfo.teamFlag" placeholder="展示状态"/>
			    </div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">团队分享次数</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" readonly="readonly" v-model="bteaminfo.shareNum" placeholder="团队分享次数"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">创建时间</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" readonly="readonly" v-model="bteaminfo.createTime" placeholder="创建时间"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">更新时间</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" readonly="readonly" v-model="bteaminfo.updateTime" placeholder="更新时间"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label" style="padding: 15px;">备注</div>
				<div class="col-sm-10">
					<textarea name="" cols="50" rows="5" maxlength="100" v-model="bteaminfo.teamRemark" placeholder="备注"></textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/bteaminfo.js?_${.now?long}"></script>
</body>
</html>